/*
 *  This project is mainly focused on developing more and more utilisties
 *  like mail utilities, dao utilities, ldap utilities, file utilities,
 *  file importing utilities etc. for easy coding in java.
 *
 *  Copyright (C) 2012  R.Satheesh Kumar alias GURU
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package org.jsmart.util.core;

/**
 * This interface is used to perform the business logic
 * code with the item object present within the list of
 * data
 * @author R.Satheesh Kumar alias GURU {pulsarcoder@gmail.com}
 * @since v1.0
 * @param <U>
 * @param <V>
 * @see AbstractUtils
 * @see UtilsException
 */
public interface AbstractItemCallback<U, V> {
    /**
     * This method performs the business logic with the item
     * available in the data object that will be provided by the callback method.
     * @param v
     * @param rowNumber
     * @return
     * @throws UtilsException
     */
    public U doInItem(V v, Integer rowNumber) throws UtilsException;
}
